﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Uinside.CreditSystem.DomainModels.Models
{
    public class Setting : BaseModel
    {
        private int _type;
        public int Type
        {
            get { return _type; }
            set { SetField(ref _type, value, "Type"); }
        }

        private string _name;
        [StringLength(255)]
        public string Name
        {
            get { return _name; }
            set { SetField(ref _name, value, "Name"); }
        }

        private int _value;
        public int Value
        {
            get { return _value; }
            set { SetField(ref _value, value, "Value"); }
        }

        private string _description;
        public string Description
        {
            get { return _description; }
            set { SetField(ref _description, value, "Description"); }
        }
    }
}
